﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="Stimulus360.Resources" %>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="mainInner fullViewHdr pt10 login">
    
	
        <% using (Html.BeginForm())
           { %>
           <%=Html.AntiForgeryToken()%>
           <div class="loginlft">
            <h3>Login</h3>
            <div class="errorMessages">
            <%= Html.ValidationSummary(Stimulus360.ValidationSummary_MandatoryDetails )%></div>
           <div class="loginBorder">
                <div class="pb5"><strong>Username</strong></div>
                <div class="pb10"><%= Html.TextBox("username", "", new { @size = "30", @maxlength = "10", @class = "initialfocus" })%>
                <%= Html.ValidationMessage("username", "*", new { @class = "requiredfield" })%></div>
                <div class="pb5"><strong>Password</strong></div>
                <div class="pb10"><%= Html.Password("password", "", new { @size = "30", @maxlength = "26" })%>
                <%= Html.ValidationMessage("password", "*", new { @class = "requiredfield" })%></div>
                <div>
                    <%= Html.CheckBox("rememberMe") %>
                    <label class="inline" for="rememberMe">
                    Remember me?</label>
                </div>
                <br clear="all" />
                <div class="buttons">
                    <input type="submit" id="btnSubmit" class="btTxt submit" value="Login" />&nbsp;&nbsp;
                    <input type="button" id="btnCancel" class="btTxt submit" value="Cancel" />
                </div>
           </div></div>
        <% } %>  
    
</div>
<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        $(".initialfocus").focus();
        $("#username").focus();
        $("#btnCancel").click(function() {
            window.location.href = "/";
        });
    });
</script>
</asp:Content>
